package com.ql.dao.yk;

import com.ql.pojo.yk.Doctor;
import com.ql.pojo.yk.DoctorExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DoctorMapper {
    int countByExample(DoctorExample example);

    int deleteByExample(DoctorExample example);

    int deleteByPrimaryKey(Integer docid);

    int insert(Doctor record);

    int insertSelective(Doctor record);

    List<Doctor> selectByExample(DoctorExample example);

    Doctor selectByPrimaryKey(Integer docid);

    int updateByExampleSelective(@Param("record") Doctor record, @Param("example") DoctorExample example);

    int updateByExample(@Param("record") Doctor record, @Param("example") DoctorExample example);

    int updateByPrimaryKeySelective(Doctor record);

    int updateByPrimaryKey(Doctor record);


    List<Doctor> qryAll(@Param("start")int start,
                        @Param("end")int end,
                        @Param("queryName")String queryName,
                        @Param("queryDoctorjobTitle") int queryDoctorjobTitle
    )throws Exception;

    int qryCount(@Param("queryName")String queryName,
                 @Param("queryDoctorjobTitle") int queryDoctorjobTitle)throws Exception;

    Doctor qryById(@Param("docId")String doctorId)throws Exception;

    //新增
    int save(Doctor doctor) throws Exception;
    //修改
    int modify(Doctor doctor) throws Exception;
//    根据科室id获取科室医师列表
    List<Doctor> qryByKid(@Param( "department" ) int kId)throws Exception;
}